package mock.servicesdirectory.organisations.business.businessimpl;

import java.util.List;

import mock.servicesdirectory.common.entities.SupportingMaterial;
import mock.servicesdirectory.organisations.business.businessinterface.SupportingMaterialBO;
import mock.servicesdirectory.organisations.dao.daointerface.SupportingMaterialDAO;

public class SupportingMaterialBOImpl implements SupportingMaterialBO{

	private SupportingMaterialDAO supportingMaterialDAO;
	
	public SupportingMaterialDAO getSupportingMaterialDAO() {
		return supportingMaterialDAO;
	}

	public void setSupportingMaterialDAO(SupportingMaterialDAO supportingMaterialDAO) {
		this.supportingMaterialDAO = supportingMaterialDAO;
	}

	// Get all Supporting Material
	@Override
	public List<SupportingMaterial> getSupportingMaterial() {
		// TODO Auto-generated method stub
		// Call SupportingMaterialDAOImpl.getSupportingMaterial() to get all database of Supporting Material
		
		
		return supportingMaterialDAO.getSupportingMaterial();
	}
	
	public List<SupportingMaterial> getSupportingMaterial(int orgId) {
		// TODO Auto-generated method stub
		// Call SupportingMaterialDAOImpl.getSupportingMaterial() to get all database of Supporting Material
		
		
		return supportingMaterialDAO.getSupportingMaterial(orgId);
	}

	// check exist Url in database or not ?
	@Override
	public boolean checkExistUrl(String url,int orgid) {
		// TODO Auto-generated method stub
		// Call SupportingMaterialDAOImpl.checkExistUrl(String url,int orgid)
		
		return false;
	}



}
